Interoperation between Miniboxing and Other Generics Translations
نویسندگان
چکیده
Generics allow programmers to design algorithms and data structures that operate in the same way regardless of the data used by abstracting over data types. Generics are useful as they improve the programmer’s productivity by raising the level of abstraction, which in turn leads to reducing code duplication and uniform interfaces. However, as data on the low-level comes in different shapes and sizes, it is not a trivial job of compiler to bridge the gap between the uniform interface and the non-uniform low level implementation. Different approaches are used for generics translation and all of them can be categorized either into homogeneous or heterogeneous group. The characteristic of homogeneous translations is that all different data representations are transformed into an identical representation and use the same low-level code for this purpose. In the heterogeneous translations, code is duplicated and adapted for each incompatible data type. From a programmer’s point of view, there should be no difference between a generic method or class compiled using some homogeneous or heterogeneous translation. Therefore, the programmer can combine different types of translations together on different parts of the code and the program has to be correct. But, as different generics translations are implemented in different ways, interoperation between them introduces noticeable slowdowns as values need to be converted to the foreign object’s desired representation, incurring significant performance losses. In this thesis, it will be explored why slowdowns happen when different translations interact together and proposed the ways how they can interoperate more efficiently. Proposed approaches are implemented and their effectiveness is presented by benchmarking the implementation.
منابع مشابه
Miniboxing and the MbArray API Semester Project
In modern programming languages, genericity allows abstracting over types, enabling programmers to develop algorithms and data structures regardless of the data being handled. This tremendeously improves productivity and code reuse. Although generics offer a uniform programming experience accross different types, the actual data comes in different sizes and shapes. For example, we can equally i...
متن کاملA Comparative Study of Discourse Markers: The Case of three English Applied Linguistic Texts with their Farsi Translations
This research was an attempt to find the relationship between English discourse markers and their Farsi translations. It was conducted in order to find out whether DMs translations completely demonstrate source texts orientation and to what extent DMs translations are functionally appropriate compared to the original text? Six instruments were used. Three of them were the original English books...
متن کاملPrivacy-preserving Semantic Interoperation of Heterogeneous Databases
Two major challenges to enabling secure interoperation among web-information sources are resolving semantic heterogeneity across websites and maintaining the privacy of the data and metadata of organizations owning the websites. In this paper, we propose SACE, a novel, implemented middleware toolkit that enables privacy-preserving secure semantic access control and allows queries to be answered...
متن کاملProviding interoperation among different information systems while preserving the security requirements of individual systems
Providing interoperation among different information systems while preserving their individual security requirements led to the development of flexible Access Control Models. The Authorization Specification Language (ASL) is a significant part of the infrastructure that can support and enforce uniform security requirements across platforms. For extensive deployment of these frameworks we need m...
متن کاملConceptual and linguistic distinctions between singular and plural generics
Prasada and Dillingham (2006, 2009) and Leslie (2007, 2008) hypothesize that ‘bare plural’ generics (e.g. “tigers are striped”) are used to express a range of conceptually different types of generalizations. We investigate whether different syntactic forms of generics are restricted to expressing only some of these types of generalizations, and if so, which ones. In doing so, we also test the r...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2015